nixd
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
nixf::Attribute Class Reference

#include <Attrs.h>

Public Types

enum class  AttributeKind { Plain , Inherit , InheritFrom }
 

Public Member Functions

 Attribute (std::shared_ptr< Node > Key, std::shared_ptr< Expr > Value, AttributeKind Kind)
 
Nodekey () const
 
Exprvalue () const
 
AttributeKind kind () const
 
bool fromInherit () const
 

Detailed Description

Definition at line 189 of file Attrs.h.

Member Enumeration Documentation

◆ AttributeKind

enum class nixf::Attribute::AttributeKind
strong
Enumerator
Plain 

a = b;

Inherit 

inherit a b c;

InheritFrom 

inherit (expr) a b c

Definition at line 191 of file Attrs.h.

Constructor & Destructor Documentation

◆ Attribute()

nixf::Attribute::Attribute ( std::shared_ptr< Node > Key,
std::shared_ptr< Expr > Value,
AttributeKind Kind )
inline

Definition at line 206 of file Attrs.h.

Member Function Documentation

◆ fromInherit()

bool nixf::Attribute::fromInherit ( ) const
inline

Definition at line 218 of file Attrs.h.

References Inherit, and InheritFrom.

◆ key()

Node & nixf::Attribute::key ( ) const
inline

Definition at line 212 of file Attrs.h.

◆ kind()

AttributeKind nixf::Attribute::kind ( ) const
inline

Definition at line 216 of file Attrs.h.

◆ value()

Expr * nixf::Attribute::value ( ) const
inline

Definition at line 214 of file Attrs.h.


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