AGX Dynamics  2.35.0.1
agx::Indentation Class Reference

#include <Indentation.h>

Public Member Functions

 Indentation ()
 
 Indentation (agx::UInt level)
 
String apply (const String &string)
 Indent a text, applied for each line in input string. More...
 
agx::UInt getIndentation () const
 
agx::UInt getLevel () const
 
 operator String () const
 
Indentation operator+ (int increment) const
 
Indentation & operator++ ()
 
Indentation operator++ (int)
 
Indentation & operator+= (int increment)
 
Indentation operator- (int decrement) const
 
Indentation & operator-- ()
 
Indentation operator-- (int)
 
Indentation & operator-= (int decrement)
 
String str () const
 

Static Public Attributes

static const agx::UInt TabSize = 2
 

Detailed Description

Definition at line 26 of file Indentation.h.

Constructor & Destructor Documentation

◆ Indentation() [1/2]

agx::Indentation::Indentation ( )
inline

Definition at line 32 of file Indentation.h.

◆ Indentation() [2/2]

agx::Indentation::Indentation ( agx::UInt  level)
inline

Definition at line 33 of file Indentation.h.

Member Function Documentation

◆ apply()

String agx::Indentation::apply ( const String &  string)

Indent a text, applied for each line in input string.

Parameters
stringThe input text string
Returns
The indented result

◆ getIndentation()

agx::UInt agx::Indentation::getIndentation ( ) const
inline

Definition at line 36 of file Indentation.h.

◆ getLevel()

agx::UInt agx::Indentation::getLevel ( ) const
inline

Definition at line 35 of file Indentation.h.

◆ operator String()

agx::Indentation::operator String ( ) const
inline

Definition at line 58 of file Indentation.h.

◆ operator+()

Indentation agx::Indentation::operator+ ( int  increment) const
inline

Definition at line 48 of file Indentation.h.

◆ operator++() [1/2]

Indentation& agx::Indentation::operator++ ( )
inline

Definition at line 51 of file Indentation.h.

◆ operator++() [2/2]

Indentation agx::Indentation::operator++ ( int  )
inline

Definition at line 52 of file Indentation.h.

◆ operator+=()

Indentation& agx::Indentation::operator+= ( int  increment)
inline

Definition at line 45 of file Indentation.h.

◆ operator-()

Indentation agx::Indentation::operator- ( int  decrement) const
inline

Definition at line 49 of file Indentation.h.

◆ operator--() [1/2]

Indentation& agx::Indentation::operator-- ( )
inline

Definition at line 54 of file Indentation.h.

◆ operator--() [2/2]

Indentation agx::Indentation::operator-- ( int  )
inline

Definition at line 55 of file Indentation.h.

◆ operator-=()

Indentation& agx::Indentation::operator-= ( int  decrement)
inline

Definition at line 46 of file Indentation.h.

◆ str()

String agx::Indentation::str ( ) const
inline

Definition at line 57 of file Indentation.h.

Referenced by agx::operator+(), and agx::operator<<().

Member Data Documentation

◆ TabSize

const agx::UInt agx::Indentation::TabSize = 2
static

Definition at line 29 of file Indentation.h.


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