SCM Library
Spherical Cube Map rendering library
 All Classes Files Functions Variables Friends Pages
Public Member Functions | Public Attributes | List of all members
scm_item Struct Reference

An scm_item is a reference to a specific page in a specific SCM file. More...

#include <scm-item.hpp>

Inheritance diagram for scm_item:
scm_page scm_task

Public Member Functions

 scm_item ()
 Initialize an invalid SCM page reference.
 
 scm_item (int f, long long i)
 Initialize a valid SCM page reference.
 
bool is_valid () const
 Return true if this is a valid SCM page reference.
 
bool operator< (const scm_item &that) const
 Determine the order of two SCM page references.
 

Public Attributes

int f
 File index.
 
long long i
 Page index.
 

Detailed Description

An scm_item is a reference to a specific page in a specific SCM file.

An scm_item is valid if both the file and page indices are non-negative. A partial ordering is defined that enables O(log n) searching of objects derived from scm_item.


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