Spicy
Public Types | Public Member Functions | Static Public Member Functions | List of all members
hilti::detail::cxx::ID Class Reference

#include <elements.h>

Inheritance diagram for hilti::detail::cxx::ID:
hilti::detail::IDBase< ID, normalize_id >

Public Types

using Base = detail::IDBase< ID, normalize_id >
 

Public Member Functions

 ID (const ::hilti::ID &id)
 
IDoperator= (const ::hilti::ID &id)
 
- Public Member Functions inherited from hilti::detail::IDBase< ID, normalize_id >
 IDBase (const char *s)
 
 IDBase (std::string s)
 
 IDBase (std::string id, AlreadyNormalized)
 
 IDBase (const T &... s)
 
 IDBase (const std::initializer_list< std::string > &x)
 
const auto & str () const
 
ID namespace_ () const
 
ID local () const
 
bool empty () const
 
ID sub (int i) const
 
ID sub (int from, int to) const
 
ID firstN (int n) const
 
ID lastN (int n) const
 
ID relativeTo (const ID &root) const
 
ID operator+ (const std::string &other) const
 
ID operator+ (const ID &other) const
 
IDoperator+= (std::string other)
 
IDoperator+= (const ID &other)
 
bool operator== (const ID &other) const
 
bool operator== (const std::string &other) const
 
bool operator!= (const ID &other) const
 
bool operator!= (const std::string &other) const
 
bool operator< (const ID &other) const
 
 operator bool () const
 
 operator std::string () const
 

Static Public Member Functions

static ID fromNormalized (std::string id)
 

Detailed Description

A C++ ID.

Member Function Documentation

◆ fromNormalized()

static ID hilti::detail::cxx::ID::fromNormalized ( std::string  id)
inlinestatic

Wrapper to construct an ID from an already normalized string name.


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