ROSE 0.11.145.147
Public Member Functions | Public Attributes | List of all members
Rosebud::HierarchyKey Struct Reference

Description

Key for ordering classes in the class hierarchy.

Definition at line 227 of file ud/Utility.h.

#include <Rosebud/Utility.h>

Collaboration diagram for Rosebud::HierarchyKey:
Collaboration graph
[legend]

Public Member Functions

 HierarchyKey (const Ast::ClassPtr &c)
 Construct key from class.
 
 HierarchyKey (const std::string &s)
 Construct key from name.
 
bool operator< (const HierarchyKey &other) const
 Compare keys.
 

Public Attributes

std::string s
 Class name is the key.
 

Constructor & Destructor Documentation

◆ HierarchyKey() [1/2]

Rosebud::HierarchyKey::HierarchyKey ( const Ast::ClassPtr c)
inline

Construct key from class.

Definition at line 232 of file ud/Utility.h.

◆ HierarchyKey() [2/2]

Rosebud::HierarchyKey::HierarchyKey ( const std::string &  s)
inline

Construct key from name.

Definition at line 236 of file ud/Utility.h.

Member Function Documentation

◆ operator<()

bool Rosebud::HierarchyKey::operator< ( const HierarchyKey other) const
inline

Compare keys.

Definition at line 240 of file ud/Utility.h.

References s.

Member Data Documentation

◆ s

std::string Rosebud::HierarchyKey::s

Class name is the key.

Definition at line 229 of file ud/Utility.h.

Referenced by operator<().


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