#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() |
Definition at line 28 of file nth_child.h.
csspp::nth_child::nth_child | ( | integer_t | an_plus_b = 1 | ) |
Definition at line 63 of file nth_child.cpp.
csspp::nth_child::nth_child | ( | repeat_integer_t | a, |
repeat_integer_t | b | ||
) |
Definition at line 69 of file nth_child.cpp.
csspp::nth_child::nth_child | ( | std::string const & | an_plus_b | ) |
Definition at line 76 of file nth_child.cpp.
References parse().
repeat_integer_t csspp::nth_child::get_a | ( | ) | const |
Definition at line 91 of file nth_child.cpp.
References f_a.
repeat_integer_t csspp::nth_child::get_b | ( | ) | const |
Definition at line 96 of file nth_child.cpp.
References f_b.
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().
integer_t csspp::nth_child::get_nth | ( | ) | const |
Definition at line 101 of file nth_child.cpp.
Referenced by csspp::compiler::selector_simple_term().
bool csspp::nth_child::parse | ( | std::string const & | an_plus_b | ) |
Definition at line 111 of file nth_child.cpp.
References csspp::EOF_TOKEN, f_a, f_b, f_error, csspp::INTEGER, and csspp::UNKNOWN.
Referenced by nth_child(), and csspp::compiler::selector_simple_term().
void csspp::nth_child::set_a | ( | repeat_integer_t | a | ) |
Definition at line 81 of file nth_child.cpp.
References f_a.
void csspp::nth_child::set_b | ( | repeat_integer_t | b | ) |
Definition at line 86 of file nth_child.cpp.
References f_b.
std::string csspp::nth_child::to_string | ( | ) | const |
Definition at line 355 of file nth_child.cpp.
Referenced by csspp::node::display(), csspp::assembler::output(), and csspp::node::to_string().
|
private |
Definition at line 48 of file nth_child.h.
Referenced by get_a(), get_nth(), parse(), set_a(), and to_string().
|
private |
Definition at line 49 of file nth_child.h.
Referenced by get_b(), get_nth(), parse(), set_b(), and to_string().
|
private |
Definition at line 47 of file nth_child.h.
Referenced by get_error(), and parse().
Documentation of CSS Preprocessor.
This document is part of the Snap! Websites Project.
Copyright by Made to Order Software Corp.