open_toontown_panda3d/panda/src/pstatclient/pStatCollectorForward.h

44 lines
1.3 KiB
C++

// Filename: pStatCollectorForward.h
// Created by: drose (30Oct06)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should have received a copy of this license along
// with this source code in a file named "LICENSE."
//
////////////////////////////////////////////////////////////////////
#ifndef PSTATCOLLECTORFORWARD_H
#define PSTATCOLLECTORFORWARD_H
#include "pandabase.h"
#include "pStatCollectorForwardBase.h"
#include "pStatCollector.h"
////////////////////////////////////////////////////////////////////
// Class : PStatCollectorForward
// Description : This class serves as a cheap forward reference to a
// PStatCollector, so that classes that are defined
// before the pstats module may access the
// PStatCollector.
////////////////////////////////////////////////////////////////////
class EXPCL_PANDA_PSTATCLIENT PStatCollectorForward : public PStatCollectorForwardBase {
PUBLISHED:
INLINE PStatCollectorForward(const PStatCollector &col);
#ifdef DO_PSTATS
virtual void add_level(double level);
private:
PStatCollector _col;
#endif
};
#include "pStatCollectorForward.I"
#endif