Go to the documentation of this file.
58 template <
typename VertexContent>
class Vertex
189 return id() == other.
id();
197 return id() != other.
id();
205 return id() > other.
id();
213 return id() < other.
id();
221 return id() >= other.
id();
229 return id() <= other.
id();
295 template <
typename VertexContent>
301 template <
typename VertexContent>
308 template <
typename VertexContent>
310 : content(copy.content)
315 template <
typename VertexContent>
326 template <
typename VertexContent>
340 if(content->count == 0)
353 if(content->count == 0) {
359 template <
typename VertexContent>
371 template <
typename VertexContent,
typename Alloc,
typename charT>
374 ss <<
"Vertex<" <<
demangle(
typeid(VertexContent).name()) <<
">(" << v.
id() <<
")";
382 template <
typename VertexContent>
383 struct hash<
mgx::Vertex<VertexContent> >
388 return h((
size_t)v.
id());
CountedContent * content
Content of the vertex.
std::ostream & operator<<(std::ostream &s, const Colorbar::Position &pos)
mgx_EXPORT size_t vertex_counter
Number used to enumerate the vertices of all types.
VertexContent content_t
Type of the content of the vertex.
Type of the reference counted content.
Vertex & operator=(const Vertex &other)
Change the vertex held by the current object.
bool operator!=(const Vertex &other) const
Comparison operators.
size_t num() const
Return a number unique to each vertex, globally.
bool operator>(const Vertex &other) const
Comparison operators.
intptr_t vertex_identity_t
Type of the identifier of a vertex.
bool isNull() const
Test if a vertex is a null vertex.
Distributed matrix library.
void acquire()
Acquire the current pointer.
CountedContent(const VertexContent ©)
Vertex()
Creates a new vertex with a new content.
bool operator<(const Vertex &other) const
Comparison operators.
mgx_EXPORT std::string demangle(std::string s)
Demangle all the words in the string.
identity_t id() const
Return the identifier of a vertex.
void release()
Release the current pointer.
VertexContent * operator->() const
Access to the data.
bool operator<=(const Vertex &other) const
Comparison operators.
bool operator==(const Vertex &other) const
Comparison operators.
VertexContent * pointer
Type of the equivalent pointer.
bool operator>=(const Vertex &other) const
Comparison operators.
VertexContent & operator*() const
Access to the data.
CountedContent(const CountedContent ©)
unsigned int count() const
size_t operator()(const mgx::Vertex< VertexContent > &v) const
vertex_identity_t identity_t
Type of the identifier of the vertex.
unsigned int count
Reference count on the vertex.