Panda3D
panda
src
putil
compareTo.h
1
// Filename: compareTo.h
2
// Created by: drose (22Feb02)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
#ifndef COMPARETO_H
16
#define COMPARETO_H
17
18
#include "pandabase.h"
19
20
////////////////////////////////////////////////////////////////////
21
// Class : CompareTo
22
// Description : An STL function object class, this is intended to be
23
// used on any ordered collection of classes that
24
// contain a compare_to() method. It defines the order
25
// of the pointers via compare_to().
26
////////////////////////////////////////////////////////////////////
27
template
<
class
ObjectType>
28
class
CompareTo
{
29
public
:
30
INLINE
bool
operator ()
(
const
ObjectType &a,
const
ObjectType &b)
const
;
31
};
32
33
#include "compareTo.I"
34
35
#endif
36
CompareTo
An STL function object class, this is intended to be used on any ordered collection of classes that c...
Definition:
compareTo.h:28
CompareTo::operator()
bool operator()(const ObjectType &a, const ObjectType &b) const
Returns true if a sorts before b, false otherwise.
Definition:
compareTo.I:23
Generated on Wed May 17 2017 23:46:51 for Panda3D by
1.8.13