Limbo 3.5.4
Loading...
Searching...
No Matches
Point Struct Reference

a custom point class More...

Public Types

typedef int value_type
 coordinate type
typedef uint64_t value_type
 coordinate type

Public Member Functions

value_type const & x () const
 access x coordinate
value_type const & y () const
 access y coordinate
void x (value_type v)
 set x coordinate
void y (value_type v)
 set y coordinate
value_type const & x () const
 access x coordinate
value_type const & y () const
 access y coordinate
void x (value_type v)
 set x coordinate
void y (value_type v)
 set y coordinate

Public Attributes

value_type m_x
 x coordinate
value_type m_y
 y coordinate

Detailed Description

a custom point class

Definition at line 22 of file test_p2r.cpp.

Member Typedef Documentation

◆ value_type [1/2]

typedef int Point::value_type

coordinate type

Definition at line 25 of file test_p2r.cpp.

◆ value_type [2/2]

typedef uint64_t Point::value_type

coordinate type

Definition at line 25 of file test_uint64.cpp.

Member Function Documentation

◆ x() [1/4]

value_type const & Point::x ( ) const
inline

access x coordinate

Returns
x coordinate

Definition at line 34 of file test_p2r.cpp.

◆ x() [2/4]

value_type const & Point::x ( ) const
inline

access x coordinate

Returns
x coordinate

Definition at line 34 of file test_uint64.cpp.

◆ x() [3/4]

void Point::x ( value_type v)
inline

set x coordinate

Definition at line 43 of file test_p2r.cpp.

◆ x() [4/4]

void Point::x ( value_type v)
inline

set x coordinate

Definition at line 43 of file test_uint64.cpp.

◆ y() [1/4]

value_type const & Point::y ( ) const
inline

access y coordinate

Returns
y coordinate

Definition at line 39 of file test_p2r.cpp.

◆ y() [2/4]

value_type const & Point::y ( ) const
inline

access y coordinate

Returns
y coordinate

Definition at line 39 of file test_uint64.cpp.

◆ y() [3/4]

void Point::y ( value_type v)
inline

set y coordinate

Definition at line 47 of file test_p2r.cpp.

◆ y() [4/4]

void Point::y ( value_type v)
inline

set y coordinate

Definition at line 47 of file test_uint64.cpp.

Member Data Documentation

◆ m_x

value_type Point::m_x

x coordinate

Definition at line 27 of file test_p2r.cpp.

◆ m_y

value_type Point::m_y

y coordinate

Definition at line 29 of file test_p2r.cpp.


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