top | up | prev | next

Comment Abstract Class

Definition at line 74 of CharacterData.hpp

Constructors

Comment()
Comment(Comment&&) delete
Comment(const Comment&) delete
Comment(const std::u32string& data_)

Member Functions

void Accept(Visitor& visitor) override
std::unique_ptr<Node> CloneNode(bool deep) override
void Write(CodeFormatter& formatter) override
Comment& operator=(Comment&&) delete
Comment& operator=(const Comment&) delete

Constructor Details

Comment Constructor

sngxml::dom::Comment::Comment()

Definition at line 122 of CharacterData.cpp :
122 : CharacterData(NodeType::commentNodeU"comment")
123 {
124 }


Declaration at line 77 of CharacterData.hpp


Comment Constructor

sngxml::dom::Comment::Comment(Comment &&) delete

Definition at line 81 of CharacterData.hpp


Comment Constructor

sngxml::dom::Comment::Comment(const Comment &) delete

Definition at line 79 of CharacterData.hpp


Comment Constructor

sngxml::dom::Comment::Comment(const std::u32string& data_)

Definition at line 126 of CharacterData.cpp :
126 : CharacterData(NodeType::commentNodeU"comment"data_)
127 {
128 }


Declaration at line 78 of CharacterData.hpp


Member Function Details

Accept Member Function

void sngxml::dom::Comment::Accept(Visitor & visitor) override

Definition at line 142 of CharacterData.cpp :
143 {
144     visitor.Visit(this);
145 }


Declaration at line 85 of CharacterData.hpp

Base class overridden functions: sngxml::dom::Node::Accept


CloneNode Member Function

std::unique_ptr<Node > sngxml::dom::Comment::CloneNode(bool deep) override

Definition at line 137 of CharacterData.cpp :
138 {
139     return std::unique_ptr<Node>(new Comment(Data()));
140 }


Declaration at line 84 of CharacterData.hpp

Base class overridden functions: sngxml::dom::Node::CloneNode

Calls: sngxml::dom::CharacterData::Data


Write Member Function

void sngxml::dom::Comment::Write(CodeFormatter& formatter) override

Definition at line 130 of CharacterData.cpp :
131 {
132     formatter.Write("<!-- ");
133     formatter.Write(ToUtf8(Data()));
134     formatter.Write(" -->");
135 }


Declaration at line 83 of CharacterData.hpp

Base class overridden functions: sngxml::dom::CharacterData::Write

Calls: sngxml::dom::CharacterData::Data , sngxml::dom::Comment::Write

Called by: sngxml::dom::Comment::Write


operator= Member Function

Comment & sngxml::dom::Comment::operator=(Comment &&) delete

Definition at line 82 of CharacterData.hpp


operator= Member Function

Comment & sngxml::dom::Comment::operator=(const Comment &) delete

Definition at line 80 of CharacterData.hpp


top | up | prev | next