Current Version: 1.0.33
Project Name: csspp
Public Member Functions | Private Attributes | List of all members
csspp::nth_child Class Reference

#include <nth_child.h>

Public Member Functions

 nth_child (integer_t an_plus_b=1)
 
 nth_child (repeat_integer_t a, repeat_integer_t b)
 
 nth_child (std::string const &an_plus_b)
 
repeat_integer_t get_a () const
 
repeat_integer_t get_b () const
 
std::string get_error () const
 
integer_t get_nth () const
 
bool parse (std::string const &an_plus_b)
 
void set_a (repeat_integer_t a)
 
void set_b (repeat_integer_t b)
 
std::string to_string () const
 

Private Attributes

repeat_integer_t f_a = 1
 
repeat_integer_t f_b = 0
 
std::string f_error = std::string()
 

Detailed Description

Definition at line 28 of file nth_child.h.

Constructor & Destructor Documentation

◆ nth_child() [1/3]

csspp::nth_child::nth_child ( integer_t  an_plus_b = 1)

Definition at line 63 of file nth_child.cpp.

◆ nth_child() [2/3]

csspp::nth_child::nth_child ( repeat_integer_t  a,
repeat_integer_t  b 
)

Definition at line 69 of file nth_child.cpp.

◆ nth_child() [3/3]

csspp::nth_child::nth_child ( std::string const &  an_plus_b)

Definition at line 76 of file nth_child.cpp.

References parse().

Member Function Documentation

◆ get_a()

repeat_integer_t csspp::nth_child::get_a ( ) const

Definition at line 91 of file nth_child.cpp.

References f_a.

◆ get_b()

repeat_integer_t csspp::nth_child::get_b ( ) const

Definition at line 96 of file nth_child.cpp.

References f_b.

◆ get_error()

std::string csspp::nth_child::get_error ( ) const

Definition at line 106 of file nth_child.cpp.

References f_error.

Referenced by csspp::compiler::selector_simple_term().

◆ get_nth()

integer_t csspp::nth_child::get_nth ( ) const

Definition at line 101 of file nth_child.cpp.

References f_a, and f_b.

Referenced by csspp::compiler::selector_simple_term().

◆ parse()

bool csspp::nth_child::parse ( std::string const &  an_plus_b)

◆ set_a()

void csspp::nth_child::set_a ( repeat_integer_t  a)

Definition at line 81 of file nth_child.cpp.

References f_a.

◆ set_b()

void csspp::nth_child::set_b ( repeat_integer_t  b)

Definition at line 86 of file nth_child.cpp.

References f_b.

◆ to_string()

std::string csspp::nth_child::to_string ( ) const

Definition at line 355 of file nth_child.cpp.

References f_a, and f_b.

Referenced by csspp::node::display(), csspp::assembler::output(), and csspp::node::to_string().

Member Data Documentation

◆ f_a

repeat_integer_t csspp::nth_child::f_a = 1
private

Definition at line 48 of file nth_child.h.

Referenced by get_a(), get_nth(), parse(), set_a(), and to_string().

◆ f_b

repeat_integer_t csspp::nth_child::f_b = 0
private

Definition at line 49 of file nth_child.h.

Referenced by get_b(), get_nth(), parse(), set_b(), and to_string().

◆ f_error

std::string csspp::nth_child::f_error = std::string()
private

Definition at line 47 of file nth_child.h.

Referenced by get_error(), and parse().


The documentation for this class was generated from the following files:

Documentation of CSS Preprocessor.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.