mp_stories
Sneaky Stories
Vertex Class Reference
Collaboration diagram for Vertex:
[legend]

Public Member Functions

 Vertex (string key)
 
string key () const
 Returns the key of the Vertex. More...
 
bool operator== (const Vertex &other) const
 Returns true if the Vertex has the same key as other. More...
 
stringoperator[] (const string &value)
 Add, modify, or read a key/value property of the Vertex. More...
 

Private Attributes

string key_
 
std::unordered_map< string, stringproperties_
 

Friends

std::ostreamoperator<< (std::ostream &out, const Vertex &v)
 Prints out the Vertex in a human-readable format to out More...
 

Member Function Documentation

◆ key()

string Vertex::key ( ) const
inline

Returns the key of the Vertex.

Every Vertex must have a unique key.

◆ operator==()

bool Vertex::operator== ( const Vertex other) const
inline

Returns true if the Vertex has the same key as other.

◆ operator[]()

string& Vertex::operator[] ( const string value)
inline

Add, modify, or read a key/value property of the Vertex.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream out,
const Vertex v 
)
friend

Prints out the Vertex in a human-readable format to out


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