#include <Container.h>
Public Member Functions | |
Container () | |
Container (int size) | |
Container (const char *buffer) | |
Container (const char *buffer, int length) | |
Container (const std::string &string) | |
Container (const std::string &string, int number) | |
Container (const std::vector< char > &vector) | |
Container (const std::vector< char > &vector, int number) | |
virtual | ~Container () |
bool | isEmpty () const |
int | size () const |
int | length () const |
Container & | operator+= (const char *buffer) |
Container & | operator+= (const std::string &string) |
Container & | operator+= (const std::vector< char > &other) |
Container & | append (const std::vector< char > &other) |
const sk::util::Class | getClass () const |
Returns the object's class. | |
const sk::util::String | inspect () const |
Returns a string containing human-readable representation of the object. | |
const sk::util::String | toString () const |
Returns a string representation of the object. By default, it returns the object's class and the objects's id. | |
virtual Object & | self () |
Returns a reference to itself. | |
virtual const Object & | self () const |
Object * | clone () const |
Instantiates another object of the same class as a copy of itself. | |
virtual uint64_t | getId () const |
Returns a unique object id. |
sk::util::Container::Container | ( | ) |
sk::util::Container::Container | ( | int | size | ) |
sk::util::Container::Container | ( | const char * | buffer | ) |
sk::util::Container::Container | ( | const char * | buffer, | |
int | length | |||
) |
sk::util::Container::Container | ( | const std::string & | string | ) |
sk::util::Container::Container | ( | const std::string & | string, | |
int | number | |||
) |
sk::util::Container::Container | ( | const std::vector< char > & | vector | ) |
sk::util::Container::Container | ( | const std::vector< char > & | vector, | |
int | number | |||
) |
virtual sk::util::Container::~Container | ( | ) | [virtual] |
Container& sk::util::Container::append | ( | const std::vector< char > & | other | ) |
Object* sk::util::Object::clone | ( | ) | const [inherited] |
Instantiates another object of the same class as a copy of itself.
Reimplemented in sk::rt::logger::Destination, and sk::util::String.
const sk::util::Class sk::util::Container::getClass | ( | ) | const [virtual] |
virtual uint64_t sk::util::Object::getId | ( | ) | const [virtual, inherited] |
const sk::util::String sk::util::Container::inspect | ( | ) | const [virtual] |
Returns a string containing human-readable representation of the object.
Reimplemented from sk::util::Object.
bool sk::util::Container::isEmpty | ( | ) | const |
int sk::util::Container::length | ( | ) | const |
Container& sk::util::Container::operator+= | ( | const std::vector< char > & | other | ) |
Container& sk::util::Container::operator+= | ( | const std::string & | string | ) |
Container& sk::util::Container::operator+= | ( | const char * | buffer | ) |
virtual const Object& sk::util::Object::self | ( | ) | const [virtual, inherited] |
Reimplemented in sk::util::String.
virtual Object& sk::util::Object::self | ( | ) | [virtual, inherited] |
int sk::util::Container::size | ( | ) | const |
const sk::util::String sk::util::Container::toString | ( | ) | const [virtual] |
Returns a string representation of the object. By default, it returns the object's class and the objects's id.
Reimplemented from sk::util::Object.