Bomberman
Public Member Functions | Private Attributes | List of all members
BBM::Node Class Reference

#include <Node.hpp>

Collaboration diagram for BBM::Node:

Public Member Functions

std::string getName () const
 
void setName (const std::string &name)
 
void addChildNode (const Node &childNode)
 
std::vector< NodegetChildNodes (const std::string &childNodeName)
 
std::vector< NodegetChildNodes (void)
 
void setProperty (const std::string &propertyName, const std::string &propertyValue)
 
void setProperty (const std::pair< std::string, std::string > &propertyNameValue)
 
std::string getProperty (const std::string &propertyName) const
 
 Node (std::string name)
 ctor More...
 
 Node (const Node &)=default
 copy ctor More...
 
 ~Node ()=default
 dtor More...
 
Nodeoperator= (const Node &)=default
 assignment operator More...
 

Private Attributes

std::string _name
 Node name. More...
 
std::vector< Node_childNodes
 child nodes More...
 
std::map< std::string, std::string > _properties
 node's properties More...
 

Constructor & Destructor Documentation

◆ Node() [1/2]

BBM::Node::Node ( std::string  name)
explicit

ctor

◆ Node() [2/2]

BBM::Node::Node ( const Node )
default

copy ctor

◆ ~Node()

BBM::Node::~Node ( )
default

dtor

Member Function Documentation

◆ addChildNode()

void BBM::Node::addChildNode ( const Node childNode)

◆ getChildNodes() [1/2]

std::vector< Node > BBM::Node::getChildNodes ( const std::string &  childNodeName)

◆ getChildNodes() [2/2]

std::vector< Node > BBM::Node::getChildNodes ( void  )

◆ getName()

std::string BBM::Node::getName ( ) const

◆ getProperty()

std::string BBM::Node::getProperty ( const std::string &  propertyName) const

◆ operator=()

Node& BBM::Node::operator= ( const Node )
default

assignment operator

◆ setName()

void BBM::Node::setName ( const std::string &  name)

◆ setProperty() [1/2]

void BBM::Node::setProperty ( const std::pair< std::string, std::string > &  propertyNameValue)

◆ setProperty() [2/2]

void BBM::Node::setProperty ( const std::string &  propertyName,
const std::string &  propertyValue 
)

Member Data Documentation

◆ _childNodes

std::vector<Node> BBM::Node::_childNodes
private

child nodes

◆ _name

std::string BBM::Node::_name
private

Node name.

◆ _properties

std::map<std::string, std::string> BBM::Node::_properties
private

node's properties


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